import { createRoutine } from 'redux-saga-routines';
export const fetchData = createRoutine('FETCH_DATA');
export const publishRoutine = createRoutine('PUBLISH_SOMETHING');
export const incomingMessageRoutine = createRoutine('INCOMING_MESSAGE');
export const subscriptions = [
    {
      path: '/topic/posts/get',
      routine: incomingMessageRoutine,
      convertPayload: (body) => JSON.parse(body),
    },
  ];
  export const testPublishDefinitions = [
    {
      path: '/app/publish_something',
      routine: publishRoutine,
    },
  ];